Conversation
JayFoxRox
commented
Sep 6, 2019
|
|
||
| std::shared_ptr<Model> testModel = std::make_shared<Model>("data/model/test"); | ||
| // std::shared_ptr<Model> testModel = std::make_shared<Model>("data/model/test"); | ||
| std::shared_ptr<Model> testModel = std::make_shared<Model>("/home/fox/Data/Projects/boat-game-proto-data/data/monaco"); |
JayFoxRox
commented
Sep 6, 2019
|
|
||
| // Load particles from file | ||
| { | ||
| FILE* f = fopen("/home/fox/box-constraint.obj", "rb"); |
Owner
Author
There was a problem hiding this comment.
Needs fixing locally.
You can craft your own object using blender, including hinges and so on; see "Articulated Bodies" at http://graphics.cs.cmu.edu/nsp/course/15-869/2006/papers/jakobsen.htm.
If you change the mesh from the one below, then you also have to fix the indices in the source-code.
This file is:
# Blender v2.79 (sub 0) OBJ File: ''
# www.blender.org
mtllib box-constraint.mtl
o Cube_Cube.001
v -1.000000 -1.000000 1.000000
v -1.000000 1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v -1.000000 1.000000 -1.000000
v 1.000000 -1.000000 1.000000
v 1.000000 1.000000 1.000000
v 1.000000 -1.000000 -1.000000
v 1.000000 1.000000 -1.000000
l 3 1
l 1 2
l 2 4
l 4 3
l 7 3
l 4 8
l 8 7
l 5 7
l 8 6
l 6 5
l 1 5
l 6 2
l 1 6
l 2 5
l 3 8
l 4 7
l 3 5
l 1 7
l 4 6
l 2 8
l 5 8
l 6 7
l 2 3
l 1 4
Open
JayFoxRox
commented
Sep 6, 2019
| auto& x2 = particles[c.b].m_x; | ||
| auto delta = x2 - x1; | ||
| #if 1 | ||
| float deltalength = glm::length(delta); |
Owner
Author
There was a problem hiding this comment.
This can get unstable and you want to have code to cope with this.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Not to be merged. Only uploading incomplete work for archival purposes.
The "Monaco" course is not being uploaded, but here's an old screenshot of the old blockout in Blender:
The actual track layout was a reimagined Monaco F1 track, with a custom theme (jungle, port, tunnels).